﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace MyPSDALayer
{
    [MetadataType(typeof(ArticleTypeMetaData))]
    public partial class ArticleType
    {
        private class ArticleTypeMetaData
        {
            [Required(ErrorMessage = "文章类型名不能为空")]
            [Display(Name = "文章类型")]
            public string TypeName { get; set; }
            [Required(ErrorMessage = "描述不能为空")]
            [Display(Name = "描述")]
            public string Descr { get; set; }
        }
    }
    [MetadataType(typeof(CaseTypeMetaData))]
    public partial class CaseType
    {
        private class CaseTypeMetaData
        {
            [Required(ErrorMessage = "类型名不能为空")]
            [Display(Name = "案例类型")]
            public string CaseTypeName { get; set; }
            [Required(ErrorMessage = "描述不能为空")]
            [Display(Name = "描述")]
            public string Descr { get; set; }
        }
    }
    [MetadataType(typeof(ResoucesAclMetaData))]
    public partial class ResoucesAcl
    {
        private class ResoucesAclMetaData
        {
            [Required(ErrorMessage = "角色不能为空")]
            [Display(Name = "角色")]
            public string RoleID { get; set; }
            [Display(Name = "资源名")]
            public int ResourceID { get; set; }
            [Display(Name = "查看")]
            public string IS_View { get; set; }
            [Display(Name = "编辑")]
            public string IS_Edit { get; set; }
            [Display(Name = "删除")]
            public string IS_Del { get; set; }
        }
    }
    [MetadataType(typeof(RoleMetaData))]
    public partial class Role
    {
        private class RoleMetaData
        {
            [Required(ErrorMessage = "角色名不能为空")]
            [Display(Name = "角色名")]
            public string RoleID { get; set; }
            [Display(Name = "描述")]
            public string Descr { get; set; }
        }
    }
    [MetadataType(typeof(ResourceTypeMetaData))]
    public partial class ResourceType
    {
        private class ResourceTypeMetaData
        {
            [Required(ErrorMessage = "不能为空")]
            [Display(Name = "菜单名")]
            public string ResourceTypeName { get; set; }
            [Required(ErrorMessage = "不能为空")]
            [Display(Name = "描述")]
            public string Descr { get; set; }
        }
    }
    [MetadataType(typeof(PaymentTypeMetaData))]
    public partial class PaymentType
    {
        private class PaymentTypeMetaData
        {
            [Required(ErrorMessage = "不能为空")]
            [Display(Name = "类型名")]
            public string TypeName { get; set; }
            [Required(ErrorMessage = "不能为空")]
            [Display(Name = "描述")]
            public string Descr { get; set; }
        }
    }
}
